home *** CD-ROM | disk | FTP | other *** search
/ Info-Mac 4 / Info_Mac IV CD-ROM (Pacific HiTech Inc.)(August 1994).iso / Science / RLaB / help / int < prev    next >
Text File  |  1994-04-25  |  369b  |  21 lines

  1. int:
  2.  
  3. Syntax:    int ( a )
  4.  
  5. Description:
  6.  
  7.     Int returns it's argument after it has been "cast" to an
  8.     integer. If the argument is a MATRIX then the int operation is
  9.     performed on an element-by-element basis.
  10.  
  11.     int() has the effect of truncating the input, for example:
  12.  
  13.     > int(1.1)
  14.                1
  15.     > int(1.5)
  16.                1
  17.     > int(1.999)
  18.                1
  19.  
  20. See Also: ceil, floor
  21.